<!DOCTYPE html>
<html>
<head>
<script src="<?php echo asset_url();?>jsScript/jquery-1.10.2.min.js"></script>
<link rel="stylesheet"
	href="<?php echo asset_url();?>style/mainStyle.css" type="text/css" />
<title><?php echo $title ?> - HyperMarket</title>

</head>
<body>
	<div id="banner">
		<div id="headbar">G-6 HyperMarket HeadQuarter</div>
	</div>
	<div id="menu">
		<ul>
			<li><a href="<?php echo site_url()?>">Home</a></li>
			<?php
			if($this->session->userdata('validated')){
				echo '<li><a href='. site_url().'/user>Profile</a></li>';
				echo '<li><a href='. site_url().'/item/search>Items</a></li>';
				echo '<li><a href='. site_url().'/category/search>Category</a></li>';
				echo '<li><a href='. site_url().'/manufacturer/search>Manufacturer</a></li>';
				echo '<li><a href='. site_url().'/branch/search>Branches</a></li>';
				echo '<li><a href='. site_url().'/request>Request</a>';
				if ($request_count >0)
					echo '<div class="overlap"><label>'.$request_count.'</label></div>';
				echo '</li>';
				echo '<li><a href='. site_url().'/item/restock>Restock</a>';
				if ($restock_count >0)
					echo '<div class="overlap"><label>'.$restock_count.'</label></div>';
				echo '</li>';
				echo '<li><a href='. site_url().'/price_rule>Discount Rules</a></li>';
				echo '<li id="logout"><a href='.site_url().'/home/logout>Log out</a></li>';
			}
			?>
		</ul>

	</div>
	<?php 
	echo '<div id="container">';
	echo '<div id="content">';
	?>